package online.heycm.lock;

/**
 * 锁操作接口
 *
 * @author heycm
 * @since 2023/1/27 15:37
 */
public interface RedisLock {

    boolean lock(String key, long maxWait, long leaseTime);

    void unlock();

}
